﻿using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;
using IMClient.Model.Message;

namespace IMClient.Model.UI
{
    public abstract partial class ChatParticipantViewModel : ObservableObject
    {
        [ObservableProperty]
        private string id = string.Empty;  // ID可以是好友ID或者群聊ID

        [ObservableProperty]
        private string avatar = string.Empty;

        [ObservableProperty]
        private string name = string.Empty;

        [ObservableProperty]
        private string lastMessage = string.Empty;

        [ObservableProperty]
        private string lastMessageTime = string.Empty;

        [ObservableProperty]
        private int unreadCount;

        [ObservableProperty]
        private ObservableCollection<ChatMessage> chatHistory = new();
    }

}
